/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-27
 * Time: 21:29
 */
//青蛙又可在陆地也可以在水里~
public class Frog extends Animal implements IRunning,ISwimming{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(this.name+"在地上跳~");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"在水里蹬~");
    }
}
